import 'package:flutter/material.dart';

///主题颜色状态管理
class ThemeColorProvider extends ChangeNotifier {
  MaterialColor _color = Colors.blue;//主题

  //get方法
  MaterialColor get color => _color;

  //切换主题色
  void changeThemeColor({MaterialColor color = Colors.blue}){
    _color = color;
    notifyListeners();
  }

}
